<?
	$sql ="select * from loaitin order by thutu asc";
	$loaitin=mysql_query($sql);
?>
<div class="right">
<table width="370" height="110" border="1">
  <tr>
    <td width="52" height="61"><div align="center"><strong>STT</strong></div></td>
    <td width="52"><div align="center"><strong>Tên loại tin</strong></div></td>
    <td width="74"><div align="center"><strong>Trạng thái</strong></div></td>
    <td width="56"><div align="center"><strong>Thứ tự</strong></div></td>
    <td colspan="2"><div align="center"><strong>Quản lý</strong></div></td>
  </tr>
  
<?
	$i=1;
	while($dong = mysql_fetch_array($loaitin)){
?>
  
  <tr>
  	<td><? echo $i?></td>
    <td><? echo $dong["tenloaitin"] ?></td>
    <td><? echo $dong["trangthai"] ?></td>
    <td><? echo $dong["thutu"] ?></td>
    
    <td width="49"><div align="center"><em><strong>
    	<a href="index.php?quanly=loaitin&ac=sua">
    		Sửa
        </a>
    </strong></em></div></td>
    <td width="47"><div align="center"><em><strong>
    <a href="index.php/loaitin/xuly.php?xoa=loaitin&id=<? echo $dong["idloaitin"]?>">
    	Xóa
    </a>
    </strong></em></div></td>
  </tr>
<?
	$i++;
	}
?>
  
  
</table>
</div>
